<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2024/9/23
  Time: 20:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>编辑用户</title>
</head>
<body>
<h2>编辑用户</h2>
<form action="editUser" method="post">
    <input type="hidden" name="uCode" value="${user.uCode}">
    <label for="uName">用户名:</label>
    <input type="text" id="uName" name="uName" value="${user.uName}">
    <br>
    <label for="uPwd">密码:</label>
    <input type="password" id="uPwd" name="uPwd">
    <br>
    <label for="uType">类型:</label>
    <select id="uType" name="uType">
        <option value="0" <c:if test="${user.uType == 0}">selected</c:if>>普通</option>
        <option value="1" <c:if test="${user.uType == 1}">selected</c:if>>管理员</option>
    </select>
    <br>
    <label for="uMemo">备注:</label>
    <input type="text" id="uMemo" name="uMemo" value="${user.uMemo}">
    <br>
    <input type="submit" value="修改">
</form>
</body>
</html>